<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  {{info}}
  <input type="button" @click="f()">
</div>
</body>
<script src="js/vue.min.js"></script>
<script>
  let v = new Vue({
    el: "body>div",
    data: {info: "事件绑定"},
    methods: {
      f() {
        alert("触发点击事件");
      }
    }
  });
</script>
</html>